import {Injectable} from '@angular/core';
import {Subject} from 'rxjs';

@Injectable({
    providedIn: 'root'
})
export class LayersPanelService {
    private changeTitle = new Subject();
    private changeSelectLayer = new Subject();
    titleObservable = this.changeTitle.asObservable();
    selectLayerObservable = this.changeSelectLayer.asObservable();
    panelMinWidth = 460;

    constructor() {
    }

    $changeTitleObservable(value) {
        this.changeTitle.next(value)
    }

    $changeSelectLayerObservable(value) {
        this.changeSelectLayer.next(value);
    }
}
